Class NativeBindings.OdinTArray<T>
Pinned Buffer (for an unmanaged-compatible type T)
Declaration
Implements:
System.IDisposable
Methods
SetBuffer(T[])
Declaration
Parameters
| Type | Name |
|---|---|
<T>[] | buffer |
SetBuffer(nint, int)
Declaration
Parameters
| Type | Name |
|---|---|
System.IntPtr | bufferPtr |
System.Int32 | length |
GetBuffer()
Declaration
Returns
System.Span<<T>>
GetBuffer(int)
Declaration
Returns
System.Span<<T>>
Parameters
| Type | Name |
|---|---|
System.Int32 | index |
GetBuffer(int, int)
Declaration
Returns
System.Span<<T>>
Parameters
| Type | Name |
|---|---|
System.Int32 | index |
System.Int32 | length |
FlushBuffer()
Copies the managed buffer back to the native pointer.
Declaration
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
Implements
System.IDisposable